package com.yida.gwj.vote.domain.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author lqq
 * @date 2023-03-10
 */
@ApiModel("公维金投票项目修改对象请求")
public class GwjEVoteUpdateProjectRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("投票ID")
    @NotNull(message = "请求参数有误[voteId]为空")
    private Long voteId;

    @ApiModelProperty("投票发起时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "请选择投票发起时间")
    private Date startTime;

    @ApiModelProperty("投票结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "请选择投票结束时间")
    private Date endTime;

    @ApiModelProperty("公示截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "请选择投票结束时间")
    private Date publicEndTime;


    public Date getPublicEndTime() {
        return publicEndTime;
    }

    public void setPublicEndTime(Date publicEndTime) {
        this.publicEndTime = publicEndTime;
    }


    public Long getVoteId() {
        return voteId;
    }

    public void setVoteId(Long voteId) {
        this.voteId = voteId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }


    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("VoteProjectRequest{");
        sb.append("voteId=").append(voteId);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append('}');
        return sb.toString();
    }
}
